﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace _3.EscapingHtmlTags
{
    public partial class EscaperForm : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void ButtonShow_Click(object sender, EventArgs e)
        {
            string input = TextBoxInput.Text;
            string output = Server.HtmlEncode(input);
            
            TextBoxOutput.Text = output;
            LabelOutput.Text = output;
        }
    }
}